package com.jiang.jetpackdemo.database

import androidx.room.Database
import androidx.room.RoomDatabase
import com.jiang.jetpackdemo.model.FavoritesModel
import com.jiang.jetpackdemo.model.ImgInfo
import com.jiang.jetpackdemo.model.NewsInfo

/**
 *
 * @ProjectName:    JetpackDemo
 * @ClassName:      MyRoomDatabase
 * @Description:     java类作用描述
 * @Author:         江
 * @CreateDate:     2020/4/7 12:19
 */
@Database(entities = [NewsInfo::class, ImgInfo::class,FavoritesModel::class], version = 1, exportSchema = false)
abstract class MyRoomDatabase : RoomDatabase() {
    abstract fun getNewsInfoDao(): NewsInfoDao
    abstract fun getImgInfoDao(): ImgInfoDao
    abstract fun getFavoritesModelDao(): FavoritesModelDao
}